<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数嵌套函数</title>
</head>
<body>

<script>
    const o = {
        name:'juice',
        greetbackwords(){
            //const self = this;
            const  getname = () => {//箭头函数   function getname()
                console.log("getname::::" + this.name);
                return this.name;
            }
            return `反过来的：${getname()}`;
        }
    }
    console.log(o.greetbackwords());
</script>
</body>
</html>